package com.shop.model;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public class Order {
    private int orderId;//订单id
    private String status;//订单状态
    private String studentId;//用户Id
    private String coursesId;//购买课程Id
    private double total_price;//总金额
    private LocalDateTime order_date;//



    public Order() {

    }

    public Order(int orderId, String status, String studentId, String coursesId, double total_price, LocalDateTime order_date) {
        this.orderId = orderId;
        this.status = status;
        this.studentId = studentId;
        this.coursesId = coursesId;
        this.total_price = total_price;
        this.order_date = order_date;
    }

    public int getOrderId() {
        return orderId;
    }
    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getCoursesId() {
        return coursesId;
    }

    public void setCoursesId(String coursesId) {
        this.coursesId = coursesId;
    }

    public double getTotal_price() {
        return total_price;
    }

    public void setTotal_price(double total_price) {
        this.total_price = total_price;
    }

    public LocalDateTime getOrder_date() {
        return order_date;
    }

    public void setOrder_date(LocalDateTime order_date) {
        this.order_date = order_date;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", status='" + status + '\'' +
                ", studentId=" + studentId +
                ", coursesId='" + coursesId + '\'' +
                ", total_price=" + total_price +
                ", order_date=" + order_date +
                '}';
    }
}
